import 'package:flutter/material.dart';
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';
import 'package:yurun_smartmerchants/res/colours.dart';

class WebViewBrowser extends StatelessWidget {
  const WebViewBrowser({Key key, this.url, this.title}):super(key:key);
  final String url;
  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(

        leading: new IconButton(
            icon: new Icon(Icons.arrow_back, color: Colors.black),
            onPressed: () => Navigator.of(context).pop()),
        centerTitle: true,
        title: Text(title, style: TextStyle(color: Colors.black),),
        backgroundColor: Colors.white,
      ),
      body: WebviewScaffold(
        url: url,
      ),
    );
  }
}